home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 1 / PCUSER0402D1.iso / resource / ecomm / files / ecomm205.exe / data1.cab / Template / Frame.dat < prev    next >
Encoding:
Text File  |  2001-11-26  |  2.1 KB  |  55 lines

  1. <!-- frame.dat - Version 2.0 Copyright 2000 Trellian -->
  2.  
  3. <SCRIPT> 
  4.  
  5. var mode = $MODE;
  6.  
  7. if (mode == 0){
  8.     if (name != "shopmain"){
  9.     document.open();
  10.     document.writeln('<FRAMESET COLS="*,208" BORDER=0 FRAMEBORDER=NO ' +
  11. 'FRAMESPACING=0>' +
  12. '<FRAME SRC="' + location + '?x" NAME="shopmain">' +
  13. '<FRAMESET ROWS="*,130">' +
  14. '<FRAME SRC="trolley.html" NAME="shoptrolley" MARGINWIDTH=8' +
  15. ' MARGINHEIGHT=5>' +
  16. '<FRAME SRC="register.html' + location.search +
  17. '" NAME="shopregister" SCROLLING=NO>' +
  18. '</FRAMESET>' + '</FRAMESET>' + '<NOFRAMES>');
  19.     document.close();
  20.   }
  21. }
  22.   
  23. function addItem(){
  24.    if (top.location == self.location){     
  25.        var infoString;
  26.        infoString = '?add&' + arguments[0] + '    ' + arguments[1]+':'+arguments[9]+':'+arguments[10] + '    ' + arguments[2] + '    ' + arguments[3] + '    ' + arguments[4] + '    ' + arguments[5] + '    ' + arguments[6] + '    ' + arguments[7] + '    ' + arguments[8]+'    '+arguments[9]+'    '+arguments[10]; 
  27.        document.open(); 
  28.        document.writeln('<' + 'SCRIPT' + '>'); 
  29.        document.writeln('function info(){ return "' + infoString + '"; }');
  30.        document.writeln('<' + '/' + 'SCRIPT' + '>'); 
  31.        document.writeln('<FRAMESET COLS="*,208" BORDER=0 FRAMEBORDER=NO ' +
  32. 'FRAMESPACING=0>' +
  33. '<FRAME SRC="' + location + '?x'+ '" NAME="shopmain">' +
  34. '<FRAMESET ROWS="*,130">' +
  35. '<FRAME SRC="trolley.html" NAME="shoptrolley" MARGINWIDTH=8' +
  36. ' MARGINHEIGHT=5>' +
  37. '<FRAME SRC="register.html' + location.search +
  38. '" NAME="shopregister" SCROLLING=NO>' +
  39. '</FRAMESET>' + '</FRAMESET>' + '<NOFRAMES>');
  40.       document.close();       
  41.    }       
  42.    else
  43.       parent.shopregister.addItem(arguments[0],arguments[1]+':'+arguments[9]+':'+arguments[10],arguments[2],arguments[3],arguments[4],parseInt(arguments[5]),arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]);
  44. }
  45.  
  46. function removeItem(code){
  47.    if (top.location != self.location){           
  48.        parent.shopregister.removeItem(code);       
  49.        if (mode == 1 && !parent.shopregister.inTrolley()){
  50.           top.location = self.location;
  51.        } 
  52.    }
  53. }
  54. </SCRIPT>
  55.